package com.jprocms.module.cms.controller.admin.channel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 栏目批量创建 VO 使用
 */
@Data
public class ChannelBatchCreateVO {

    @Schema(description = "参考栏目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "参考栏目ID不能为空")
    private Long channelId;

    @Schema(description = "父栏目ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "1")
    private Long parentId;

    @Schema(description = "空格隔开多个栏目名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "栏目名称")
    @NotNull(message = "参考栏目ID不能为空")
    private String names;

}
